package com.ruoyi.exam.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.exam.mapper.ExamMakeupStudentMapper;
import com.ruoyi.exam.domain.ExamMakeupStudent;
import com.ruoyi.exam.service.IExamMakeupStudentService;

/**
 * 补缓考学生关联管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-11
 */
@Service
public class ExamMakeupStudentServiceImpl implements IExamMakeupStudentService 
{
    @Autowired
    private ExamMakeupStudentMapper examMakeupStudentMapper;

    /**
     * 查询补缓考学生关联管理
     * 
     * @param id 补缓考学生关联管理主键
     * @return 补缓考学生关联管理
     */
    @Override
    public ExamMakeupStudent selectExamMakeupStudentById(Long id)
    {
        return examMakeupStudentMapper.selectExamMakeupStudentById(id);
    }

    /**
     * 查询补缓考学生关联管理列表
     * 
     * @param examMakeupStudent 补缓考学生关联管理
     * @return 补缓考学生关联管理
     */
    @Override
    public List<ExamMakeupStudent> selectExamMakeupStudentList(ExamMakeupStudent examMakeupStudent)
    {
        return examMakeupStudentMapper.selectExamMakeupStudentList(examMakeupStudent);
    }

    /**
     * 新增补缓考学生关联管理
     * 
     * @param examMakeupStudent 补缓考学生关联管理
     * @return 结果
     */
    @Override
    public int insertExamMakeupStudent(ExamMakeupStudent examMakeupStudent)
    {
        examMakeupStudent.setCreateTime(DateUtils.getNowDate());
        return examMakeupStudentMapper.insertExamMakeupStudent(examMakeupStudent);
    }

    /**
     * 修改补缓考学生关联管理
     * 
     * @param examMakeupStudent 补缓考学生关联管理
     * @return 结果
     */
    @Override
    public int updateExamMakeupStudent(ExamMakeupStudent examMakeupStudent)
    {
        return examMakeupStudentMapper.updateExamMakeupStudent(examMakeupStudent);
    }

    /**
     * 批量删除补缓考学生关联管理
     * 
     * @param ids 需要删除的补缓考学生关联管理主键
     * @return 结果
     */
    @Override
    public int deleteExamMakeupStudentByIds(Long[] ids)
    {
        return examMakeupStudentMapper.deleteExamMakeupStudentByIds(ids);
    }

    /**
     * 删除补缓考学生关联管理信息
     * 
     * @param id 补缓考学生关联管理主键
     * @return 结果
     */
    @Override
    public int deleteExamMakeupStudentById(Long id)
    {
        return examMakeupStudentMapper.deleteExamMakeupStudentById(id);
    }
}
